package com.ctg.itrdc.imageconsole.data.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.paspsdk.pub.entity.BaseEntity;



@Table(name = "DOCKER_IMAGE_TAG")
public class DockerImageTag extends BaseEntity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	@Id
	@Column(name = "ID")
	private Long id;

	/**
	 * 000:创建001:正常002:删除003:损坏
	 */
	@Column(name = "STATE")
	private String state;

	/**
	 * 版本标识
	 */
	@Column(name = "TAG")
	private String tag;

	/**
	 * 镜像名称
	 */
	@Column(name = "IMAGE_NAME")
	private String imageName;

	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_TIME")
	private String createTime;

	/**
	 * 概述
	 */
	@Column(name = "CONTENT")
	private String content;

	/**
	 * 最后更新时间
	 */
	@Column(name = "LAST_UPDATE_TIME")
	private String lastUpdateTime;

	/**
	 * 最后更新人
	 */
	@Column(name = "LAST_UPDATE_USER_ID")
	private Long lastUpdateUserId;

	/**
	 * 镜像文件信息ID
	 */
	@Column(name = "DOCKER_IMAGE_ID")
	private Long dockerImageId;

	

	/**
	 * 创建人
	 */
	@Column(name = "CREATE_USER_ID")
	private Long createUserId;
	
	
	@Column(name = "DOWN_NUM")
	private Long downNum;

	@Column(name = "SERVICE_PORT")
	private String servicePort;

	@Column(name = "DOCKERFILE")
	private String dockerfile;
	
	@Column(name = "SOURCE")
	private String source;
	
	private String userCodeOfShare;

	public void setState(String state){
		this.state = state;
	}

	public String getState(){
		return this.state;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public void setImageName(String imageName){
		this.imageName = imageName;
	}

	public String getImageName(){
		return this.imageName;
	}

	public void setCreateTime(String createTime){
		this.createTime = createTime;
	}

	public String getCreateTime(){
		return this.createTime;
	}

	public void setContent(String content){
		this.content = content;
	}

	public String getContent(){
		return this.content;
	}

	public void setLastUpdateTime(String lastUpdateTime){
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getLastUpdateTime(){
		return this.lastUpdateTime;
	}

	public void setLastUpdateUserId(Long lastUpdateUserId){
		this.lastUpdateUserId = lastUpdateUserId;
	}

	public Long getLastUpdateUserId(){
		return this.lastUpdateUserId;
	}

	public Long getDockerImageId() {
		return dockerImageId;
	}

	public void setDockerImageId(Long dockerImageId) {
		this.dockerImageId = dockerImageId;
	}

	public void setCreateUserId(Long createUserId){
		this.createUserId = createUserId;
	}

	public Long getCreateUserId(){
		return this.createUserId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public DockerImageTag() {
		super();
    }

	public Long getDownNum() {
		return downNum;
	}

	public void setDownNum(Long downNum) {
		this.downNum = downNum;
	}

	public String getDockerfile() {
		return dockerfile;
	}

	public void setDockerfile(String dockerfile) {
		this.dockerfile = dockerfile;
	}

	public String getServicePort() {
		return servicePort;
	}

	public void setServicePort(String servicePort) {
		this.servicePort = servicePort;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getUserCodeOfShare() {
		return userCodeOfShare;
	}

	public void setUserCodeOfShare(String userCodeOfShare) {
		this.userCodeOfShare = userCodeOfShare;
	}

}
